.SUFFIXES : .x .o .c .s
ifndef $(CROSS_COMPILE)
CROSS_COMPILE = gcc
endif


all: clean lyscan-test lysfd-test
lyscan-test:
	$(CROSS_COMPILE) -o lyscan-test lyscan-test.c -L ./  -pthread -lrt -lControlCAN -lusb-1.0
lysfd-test:
	$(CROSS_COMPILE) -o lysfd-test lysfd-test.c -L ./  -pthread -lrt -lControlCAN -lusb-1.0
clean:
	rm -vf lyscan-test lysfd-test
